package com.yy.domain;

import com.yy.common.annotation.Excel;
import com.yy.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 停车场设备对象 park_device
 * 
 * @author yy
 * @date 2023-10-28
 */
public class ParkDevice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 设备名 */
    @Excel(name = "设备名")
    private String name;

    /** 停车场id */
    @Excel(name = "停车场id")
    private Long carParkId;

    /** 设备条形码 */
    @Excel(name = "设备条形码")
    private String barCode;

    /** 品牌 */
    @Excel(name = "品牌")
    private String brand;

    /** 型号 */
    @Excel(name = "型号")
    private String model;

    /** 0-已下线/1-正常/2-故障维护 */
    @Excel(name = "0-已下线/1-正常/2-故障维护")
    private String status;

    /** 最近上线时间 */
    @Excel(name = "最近上线时间")
    private String lastOnlineTime;

    /** 连接模式 */
    @Excel(name = "连接模式")
    private String linkMode;

    /** 1-匝道/2-相机 */
    @Excel(name = "1-匝道/2-相机")
    private String type;

    /** 关卡(出入口)id */
    @Excel(name = "关卡(出入口)id")
    private Long checkpointId;

    /** 方向 */
    @Excel(name = "方向")
    private String direction;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCarParkId(Long carParkId) 
    {
        this.carParkId = carParkId;
    }

    public Long getCarParkId() 
    {
        return carParkId;
    }
    public void setBarCode(String barCode) 
    {
        this.barCode = barCode;
    }

    public String getBarCode() 
    {
        return barCode;
    }
    public void setBrand(String brand) 
    {
        this.brand = brand;
    }

    public String getBrand() 
    {
        return brand;
    }
    public void setModel(String model) 
    {
        this.model = model;
    }

    public String getModel() 
    {
        return model;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setLastOnlineTime(String lastOnlineTime) 
    {
        this.lastOnlineTime = lastOnlineTime;
    }

    public String getLastOnlineTime() 
    {
        return lastOnlineTime;
    }
    public void setLinkMode(String linkMode) 
    {
        this.linkMode = linkMode;
    }

    public String getLinkMode() 
    {
        return linkMode;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setCheckpointId(Long checkpointId) 
    {
        this.checkpointId = checkpointId;
    }

    public Long getCheckpointId() 
    {
        return checkpointId;
    }
    public void setDirection(String direction) 
    {
        this.direction = direction;
    }

    public String getDirection() 
    {
        return direction;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("carParkId", getCarParkId())
            .append("barCode", getBarCode())
            .append("brand", getBrand())
            .append("model", getModel())
            .append("status", getStatus())
            .append("lastOnlineTime", getLastOnlineTime())
            .append("linkMode", getLinkMode())
            .append("type", getType())
            .append("checkpointId", getCheckpointId())
            .append("direction", getDirection())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
